You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > Copy Method > TVec.Copy Method ([In] TMtxVec, [In] TMtxVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVec.Copy Method ([In] TMtxVec, [In] TMtxVec)

Copies values from Vec1 and Vec2 (concatenate).

Syntax
C#
Visual Basic
public TVec Copy([In] TMtxVec Vec1, [In] TMtxVec Vec2);

Copy each of Vec1 and Vec2 elements to the calling vector (concatenate). The Length and TMtxVec.ComplexComplexproperties of the calling vector are set implicitly to match Vec1 and Vec2 vector.

var a,b,c: TVec; begin CreateIt(a,b,c); try a.SetIt(True,[1,2,3,4]); b.Copy(a); c.Copy(a,b); //concatenate a and b and store in c // c = [1,2,3,4,1,2,3,4] finally FreeIt(a,b,c); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!